package com.ljh.bigevent.service;

import com.ljh.bigevent.pojo.Article;
import com.ljh.bigevent.pojo.PageBean;

public interface ArticleService {
    Result addArticle(Article article);
    Result<PageBean<Article>> getArticleList(Integer pageNum, Integer pageSize, Integer categoryId, String state);
    Result updateArticle(Article article);
    Result<Article> getArticleById(Integer id);
    Result deleteArticle(Integer id);
    //添加文章
    void add(Article article);
    //条件列表分页查询
    PageBean<Article> list(Integer pageNum, Integer pageSize, Integer categoryId, String state);
    //更新文章
    void update(Article article);
    //根据id查找文章
    Article detail(Integer id);
    //删除文章
    void delete(Integer id);
}
